package com.codi.bus.core.dao;

import com.codi.base.dao.BaseDAO;
import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.OrganAgent;

import java.util.List;

/**
 * 机构经办人
 *
 * @author xm
 * @date 2018-05-09 14:26
 */
public interface OrganAgentDao extends BaseDAO<OrganAgent> {
    OrganAgent getEntityByMobile(String mobile);

    OrganAgent selectByPrimaryKey(Long agentId);


    OrganAgent getEntityByCreateUserId(Long createUserId);

    void updateByPrimaryKeySelective(OrganAgent organAgent);

    /**
     * 查询全部经办人
     *
     * @return
     */
    List<OrganAgent> findAll(String profileName,Integer pageIndex, Integer pageSize);

    int insertOne(OrganAgent organAgent);
}
